/**
 * Author: w景洋.
 * Time: 2016/7/6 0006
 */
angular.module('mod_pri.networking', [

    ])

    .config(['$stateProvider',   '$urlRouterProvider',
        function($stateProvider, $urlRouterProvider) {
            $stateProvider

            .state('networking', {
                url : '/networking',
                templateUrl : 'view/networking.html',
                controller : 'NetworkingController'
            })

            .state('search', {
                url : '/search',
                templateUrl : 'view/search.html',
                controller : 'SearchController'
            })
            .state('connect_ip', {
                url : '/connect_ip',
                templateUrl : 'view/connect_ip.html',
                controller : 'Connect_ipController'
            })
            .state('standaloneMode', {
                url : '/standaloneMode',
                templateUrl : 'view/standaloneMode.html',
                controller : 'StandaloneModeController'
            })
            .state('relay', {
                url : '/relay',
                templateUrl : 'view/relay.html',
                controller : 'RelayController'
            })
            .state('search_detail', {
                url : '/search_detail',
                templateUrl : 'view/search_detail.html',
                controller : 'Search_DetailController'
            })
        }])

    .controller('NetworkingController', ['$scope', '$state','testService', function($scope,$state,testService) {
        console.log(1);
    }])
    .controller('SearchController', ['$scope', '$state','testService', function($scope,$state,testService) {
        console.log(2);
    }])
    .controller('Connect_ipController', ['$scope', '$state','testService', function($scope,$state,testService) {
        console.log(3);
    }])
    .controller('StandaloneModeController', ['$scope', '$state','testService', function($scope,$state,testService) {
        closeAndOpenPattern();
    }])
    .controller('RelayController', ['$scope', '$state','testService', function($scope,$state,testService) {
        console.log(4);
    }])
    .controller('Search_DetailController', ['$scope', '$state','testService', function($scope,$state,testService) {
        console.log(5);
    }]);